//
//  TTRTC.swift
//  TTService
//
//  Created by Toj on 4/16/21.
//

import Foundation

// 动态创建远端View
 public typealias TTRTCRunTimeRemoteView = (_ uid: TTUInt)->TTView?

// 创建成功后回调
internal typealias TTRTCRunTimeHandler = (_ view: TTView)->Void

// 本地即将进入回调
public typealias TTRTCLocalWillJoin = (_ uid:TTUInt)->Void
// 本地已经进入回调
public typealias TTRTCLocalDidJoined = (_ uid:TTUInt)->Void
// 本地重新进入回调
public typealias TTRTCLocalDidReJoined = (_ uid:TTUInt)->Void
// 远端进入回调
public typealias TTRTCRemoteDidJoined = (_ uid:TTUInt)->Void

// 视频第一帧回调
public typealias TTRTCFirstVideoDecoded = (_ uid:TTUInt)->Void

// 远端视频/ 音频(关闭/打开)回调
public typealias TTRTCDidStreamMuted = (_ muted: Bool, _ uid: TTUInt)->Void

// 音量质量回调
public typealias TTRTCAudioVolumeIndication = (_ uid: TTUInt,_ value: UInt)->Void

// 网络质量回调
public typealias TTRTCVideoNetworkQuality = (_ uid: TTUInt,_ level: UInt)->Void

// 退出房间
public typealias TTRTCQuitLiveRoom = ()->Void

// 有用户离开回调
public typealias TTRTCDidOffline = (_ uid: TTUInt)->Void

// Token已经失效回调
public typealias TTRTCDidTimeout = ()->Void
// 发生错误回调
public typealias TTRTCDidOccurError = (_ code: Int)->Void
// 接收对方数据流消息错误的回调
public typealias TTRTCDidOccurStreamMessageError = (_ uid: TTUInt, _ code: Int)->Void
